/*
 * @Author: hanqifeitb 8592865+hanqifeitb@user.noreply.gitee.com
 * @Date: 2025-03-05 20:54:03
 * @LastEditors: hanqifeitb 8592865+hanqifeitb@user.noreply.gitee.com
 * @LastEditTime: 2025-03-15 22:15:21
 * @FilePath: /tianmu/nuxt-font/stores/menu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia';
// import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

export const useMenuStore = defineStore('MemuExam', {
  state: () => ({
    // 历年真题20 还原真题：24
    leftMenu:[
      {
        label: "历年真题",
        id:1,
        desc: '我们将为您整体好试卷，您只需点击开始答题即可进入刷题页面啦～祝愿每位小伙伴都能顺利上岸',
        children: [
          { label: '随机练习',id:1,  path: "",children:
            [{id: 1, name: '小组练习',parentId:1,topid:20,rootIdA:1,isMaxCount:4,isItTimeLimited:false,children:[]},
             {id: 2, name: '个性设定',topid:20,parentId:1,rootIdA:1,isMaxCount:4,isItTimeLimited:true,children:[]},
             {id: 3, name: '顺序练习',topid:20,parentId:1,rootIdA:1,isMaxCount:4,isItTimeLimited:false,children:[]}]},
           { label: "进阶练习",id:'2',path:'',children:
            [{id: 4, name: '个性练习',topid:20,parentId:2,rootIdA:1,isMaxCount:4,isItTimeLimited:false,children:[]},
            {id: 5, name: '高阶练习',topid:20,parentId:2,rootIdA:1,isMaxCount:4,isItTimeLimited:false,children:[]}]}
        ]
      },
      {
        label: '还原真题',id:2,
        desc: '我们将为您整体好试卷，您只需点击开始答题即可进入刷题页面啦～祝愿每位小伙伴都能顺利上岸',
        children: [
          { label: '随机练习', id:'1',path: "",children:
            [{id: 1, name: '小组练习',parentId:1,topid:24,rootIdA:2,isMaxCount:4,isItTimeLimited:false,children:[]},
            {id: 2, name: '个性设定',parentId:1,topid:24,rootIdA:2,isMaxCount:4,isItTimeLimited:true,children:[]},
            {id: 3, name: '顺序练习',parentId:1,topid:24,rootIdA:2,isMaxCount:4,isItTimeLimited:false,children:[]}] },
          { label: "进阶练习" , id:'2',path: "",children:
            [{id: 4, name: '个性练习',parentId:2,topid:24,rootIdA:2,isMaxCount:4,isItTimeLimited:false,children:[]},
            {id: 5, name: '高阶练习',parentId:2,topid:24,rootIdA:2,isMaxCount:4,isItTimeLimited:false,children:[]}]}
        ],
      },
      // {
      //   label: '刻意练习', type: 3,
      //   desc: '我们将为您整体好试卷，您只需点击开始答题即可进入刷题页面啦～祝愿每位小伙伴都能顺利上岸',
      //   children: [
      //     { label: '还原真题',  id:'5',path: "",children:[{id: 11, name: '随机练习',},{id: 12, name: '高阶练习',}] },
      //     { label: "历年真题", id:'6',path: '',children:[{id: 13, name: '随机练习',},{id: 14, name: '高阶练习',}] }]
      // },
      // {
      //   label: '全真模考', type: 4, 
      //   desc: '我们将为您整体好试卷，您只需点击开始答题即可进入刷题页面啦～祝愿每位小伙伴都能顺利上岸',
      //   children: [
      //     { label: '分项模考', id:'7',path: "",children:[{id: 15, name: '历年真题',},{id: 16, name: '还原真题'}] },
      //     { label: "完整模考", id:'8', path: "" ,children:[{id: 17, name: '历年真题',},{id: 18, name: '还原真题',}]}]
      // }
    ]
  }),
  actions: {
   
  },
})
